﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/pages/Menu.master" AutoEventWireup="true" CodeFile="Novo.aspx.cs" Inherits="admin_pages_sustentabilidade_Novo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titulo" Runat="Server">
    Sustentabilidade
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Pagina" Runat="Server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />
 <div class="magin-auto cadastro">
        <fieldset>
           <legend><label>Sustentabilidade</label></legend>
        <asp:UpdateProgress runat="server" id="PageUpdateProgress" AssociatedUpdatePanelID = "Panel">
            <ProgressTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/admin/css/images/loader.gif" />
            </ProgressTemplate>            
        </asp:UpdateProgress>
        <asp:UpdatePanel runat="server" id="Panel" >
            <ContentTemplate>
              <table>
                        <tr>
                            <td>
                                 <label>Titulo</label>
                            </td>
                            <td>
                                    <asp:TextBox ID="txtTitulo" runat="server"></asp:TextBox>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtTitulo" ErrorMessage="Campo obrigatório!" 
                                        ValidationGroup="cadastrar">
                                    </asp:RequiredFieldValidator>
                                     <asp:HiddenField ID="hdId" runat="server" />
                            </td>
                        </tr>
                         <tr>
                            <td>
                                  <label>Dica</label>
                            </td>
                            <td>
                                    <asp:TextBox TextMode = "MultiLine" ID="txtDica" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="txtDica" ErrorMessage="Campo obrigatório!" 
                                        ValidationGroup="cadastrar">
                                    </asp:RequiredFieldValidator>
                            </td>
                        </tr>
                         <tr>
                      <td colspan="2">
                       <asp:Button ID="btnSalvarSustentabilidade" 
                            runat="server" 
                            Text="Salvar" 
                            CssClass="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
                            OnClick="Save"
                            ValidationGroup="cadastrar"/>
                        </td>
                            </tr>
              </table>     
               
          
               
                

               
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID = "btnSalvarSustentabilidade" EventName ="Click"/>
            </Triggers>
        </asp:UpdatePanel>

                     <div class="voltar">
                <asp:LinkButton ID="lkVoltar" runat="server" CssClass="texto_cinza" PostBackUrl="~/admin/pages/sustentabilidade/Default.aspx">voltar</asp:LinkButton>
            </div>
        </fieldset>
 </div>

</asp:Content>

